Skip to content

Api/driver operations#34

Merged
Ke-vin-S merged 10 commits into
mainfrom
api/driver-operations
May 9, 2025
Merged

Api/driver operations#34
Ke-vin-S merged 10 commits into
mainfrom
api/driver-operations

Conversation

@Ke-vin-S

@Ke-vin-S Ke-vin-S commented May 9, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@Ke-vin-S Ke-vin-S marked this pull request as ready for review May 9, 2025 04:31
Copilot AI review requested due to automatic review settings May 9, 2025 04:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances API endpoints related to vehicle driver operations and assignment management. Key changes include new vehicle status endpoints (mark_available, mark_assigned, change_status) in fleet/views/vehicle.py, expanded assignment endpoints with arrival and action completion functionality in assignment/views.py, and related updates in tests, serializers, models, and supporting services.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
fleet/views/vehicle.py Added endpoints for marking vehicle status and ordering functionality.
fleet/tests/test_vehicle_api.py Added tests for the new vehicle status endpoints.
fleet/services/status_services.py Introduced helper methods for status updates.
assignment/views.py Added endpoints to view assignments by vehicle, mark arrival, and complete actions.
assignment/urls.py Updated router configuration with a basename.
assignment/tests/ (various files) New tests covering assignment creation, arrival handling, and action completion.
assignment/services/assignment_planner.py Modified planning logic with inline vehicle status updates.
assignment/serializers/assignment_item.py Added serializer for assignment items with shipment details.
assignment/serializers/assignment.py Updated assignment serializer with vehicle identifier.
assignment/models/assignment_item.py Added a role field and updated string representation.
assignment/migrations/0002_assignmentitem_role.py Migration to add the assignment item role field.

Comment thread assignment/services/assignment_planner.py Outdated
Comment thread assignment/serializers/assignment.py Outdated
Comment thread assignment/tests/test_assignment_api.py Outdated
Comment thread assignment/models/assignment_item.py Outdated
Ke-vin-S and others added 4 commits May 9, 2025 10:02
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Ke-vin-S Ke-vin-S merged commit b14fcf3 into main May 9, 2025
1 check passed
@Ke-vin-S Ke-vin-S deleted the api/driver-operations branch May 9, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants